package com.mega.ebcs.integration.route;

import org.apache.camel.builder.RouteBuilder;

import com.mega.ebcs.integration.processor.FileToClientProcessor;

public class FileToClientRoute extends RouteBuilder{	
	@Override
	public void configure() throws Exception {
		onException(Exception.class)
		.handled(true)
		.setBody(constant("Cannot Process File"));
		from("direct:processOrder")
		//from("seda:outbox?timeout=50000&concurrentConsumers=100")	
		.process(new FileToClientProcessor()).to("log:org.apache.camel.ResponseHostToFileRoute");		
	}

}
